import { request } from '../request';

export function addCategory(data) {
    return request({
        url: `/admin/category/add`,
        method: 'post',
        data: data
      })
}

export function getCategoryPageList(data) {
    
    return request.post("/admin/category/list", data)
}


export function deleteCategory(categoryId) {
    return request.post("/admin/category/delete", {categoryId})
}

export function getCategorySelect() {
    return request.post("/admin/category/select/list")
}

